package cn.wolfcode.web.mapper;

import cn.wolfcode.web.domain.Employee;
import cn.wolfcode.web.query.EmployeeQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee  record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    int queryForCount(EmployeeQueryObject qo);

    List<Employee> queryForList(EmployeeQueryObject qo);
//    保存员工角色中间表数据
void  insertRelation(@Param("eId") Long id, @Param("roleId") Long roleId);
    Employee selectUsernameAndPassword(@Param("name") String username, @Param("password") String password);

    Employee updatePassword( Employee employee);
}